﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Question.aspx.cs" Inherits="Question" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
<script type="text/javascript">
    $(function () {
        $('#t1').html("22");
        $('#divIndicator').ajaxStart(function () { $(this).show() })
        .ajaxSuccess(function () { $(this).hide(); })
        .ajaxError(function (msg) { $(this).hide(); });

        $('#btnGetCubeInGet').click(function () {
            var number = $("#txtNumber").val();
            $.get('CubeHandler.ashx?number=' + encodeURI(number), function (result) {
                $('#txtNumber').val(result);
            });
        });

    });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<div id="divIndicator" style="display: none">
<img src="Images/38.gif" />loading</div>
<br />
<hr />
plz input a number:<input id="txtNumber" />
<input type="button" id="btnGetCubeInGet" value="Get cube(get)" />
<table><tr><td id="t1">11</td></tr></table>
</asp:Content>

